package com.nanhai.buddhist.college.module.study.controller.teacher.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

import static com.nanhai.buddhist.college.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * @author AKai
 * @date 2022/8/25
 */
@Data
public class BatchAddClockRecordReqVO {

    @ApiModelProperty(value = "上课时间ID", required = true)
    @NotNull(message = "上课时间ID不能为空")
    private Integer studyTimeId;

    @ApiModelProperty(value = "星期", required = true)
    @NotNull(message = "星期不能为空")
    private Integer weekId;

    @ApiModelProperty(value = "班级ID")
    private String classesId;

    @ApiModelProperty(value = "课程ID")
    private String subjectId;

    @ApiModelProperty(value = "教室信息")
    private String roomId;

    @ApiModelProperty(value = "打卡时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date clockTime;

    @ApiModelProperty(value = "帮打卡人id")
    @NotNull(message = "帮打卡人id 不能为空")
    private String helpClockId;

    @ApiModelProperty(value = "帮打卡人角色类型")
    @NotNull(message = "帮打卡人角色类型 不能为空")
    private String helpClockRole;

    @ApiModelProperty(value = "打卡人Id集合")
    @NotEmpty(message = "打卡人信息不能为空")
    private  List<String> clockUserIds;

    @ApiModelProperty(value = "打卡类型")
    private String clockType;

    @ApiModelProperty(value = "打卡角色")
    private Integer clockRole;

    @ApiModelProperty(value = "打卡备注")
    private String clockRemark;

    @ApiModelProperty(value = "打卡结果（1正常;2异常）")
    private String  clockStatus;

    @ApiModelProperty(value = "上下课（1上课;2下课）")
    private Integer  upDown;


}
